﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Text;
using CivilleWP7.Civille.Source;

namespace CivilleWP7
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void About_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MessageBoxButton ok = new MessageBoxButton();
            MessageBox.Show("This application is an online community game that encourages connecting with other people, going out, interractions. It also supports causes of any kind that contribute to the benefit of the humankind. \n Authors: 2012", "CityScape Application", ok);
        }

        private void RegisterButton_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/Pages/SignUpPage.xaml", UriKind.Relative));
        }

        private void LogInButton_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/Pages/SelectAuthPage.xaml", UriKind.Relative));
        }

        private void FacebookLoginButton_Click(object sender, RoutedEventArgs e)
        {
            FacebookLogin login = new FacebookLogin(LayoutRoot, this);
        }
    }
}